//-----------------------------------------------------------------------
// <copyright file="a_AgreeToUseService.cs" company="AACECOM">
//     Copyright (c) AACECOM. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------

using System;
using System.Collections;
using ThoiTrang.Entities;
using ThoiTrang.Data;
    
namespace ThoiTrang.Business
{   
	/// <summary>
	/// 
	/// </summary> 
    public class a_AgreeToUseService
    {
        #region a_AgreeToUse

        public static void Createa_AgreeToUse(a_AgreeToUse a_AgreeToUse)
        {            
            try
            {
                a_AgreeToUseDAO a_AgreeToUseDAO = new a_AgreeToUseDAO();
                a_AgreeToUseDAO.Createa_AgreeToUse(a_AgreeToUse);
            }            
            catch (Exception ex)
            {                
                throw ex;
            }
        }        

        public static void Updatea_AgreeToUse(a_AgreeToUse a_AgreeToUse)
        {            
            try
            {
                a_AgreeToUseDAO a_AgreeToUseDAO = new a_AgreeToUseDAO();
                a_AgreeToUseDAO.Updatea_AgreeToUse(a_AgreeToUse);
            }           
            catch (Exception ex)
            {
                throw ex;
            }
        }        

        public static void Deletea_AgreeToUse(int agreeID)
        {            
            try
            {
                a_AgreeToUseDAO a_AgreeToUseDAO = new a_AgreeToUseDAO();
                a_AgreeToUseDAO.Deletea_AgreeToUse(agreeID);
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }
        
        public static a_AgreeToUse Geta_AgreeToUse(int agreeID)
        {            
            try
            {
                a_AgreeToUseDAO a_AgreeToUseDAO = new a_AgreeToUseDAO();
                return a_AgreeToUseDAO.Geta_AgreeToUse(agreeID);                
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }                

        public static a_AgreeToUseCollection Geta_AgreeToUseList(a_AgreeToUseColumns orderBy, OrderDirection orderDirection)
        {            
            try
            {
                a_AgreeToUseDAO a_AgreeToUseDAO = new a_AgreeToUseDAO();
                return a_AgreeToUseDAO.Geta_AgreeToUseList(orderBy, orderDirection);
            }            
            catch (Exception ex)
            {
               throw ex;
            }
        }        

        public static a_AgreeToUseCollection Geta_AgreeToUseList(a_AgreeToUseColumns orderBy, OrderDirection orderDirection, int page, int pageSize, out int totalRecords)
        {            
            try
            {
                a_AgreeToUseDAO a_AgreeToUseDAO = new a_AgreeToUseDAO();
                return a_AgreeToUseDAO.Geta_AgreeToUseList(orderBy, orderDirection, page, pageSize, out totalRecords);
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }        

        #endregion
    }
}